﻿using Abp.Application.Services.Dto;
using AppFramework.ApiClient;
using AppFramework.DinosaursParkMes.Production.DTO;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.DinosaursParkMes.Production
{
    public class MaterialRequisitionService : ProxyAppServiceBase, IMaterialRequisitionService
    {
        public MaterialRequisitionService(AbpApiClient apiClient) : base(apiClient)
        {
        }

        public Task<PagedResultDto<MaterialShowDTO>> GetMaterialShow(MaterialImportDTO dto)
        {
            throw new NotImplementedException();
        }

        public async Task<int> PostMaterAdd(MaterialRequisitionDTO dto)
        {
            await ApiClient.PostAsync(GetEndpoint(nameof(PostMaterAdd)), dto);
            return 1;
        }
    }
}
